package com.social.dao;

import com.social.pojo.Permission;
import com.social.pojo.RolePermissionKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {
    int deleteByPrimaryKey(RolePermissionKey key);

    int insert(RolePermissionKey record);

    int insertSelective(RolePermissionKey record);

    List<RolePermissionKey> select(@Param("rid") Integer rid, @Param("pid") Integer pid);

    RolePermissionKey selectByRoleId(Integer rid);

    int updateByRoleId(RolePermissionKey record);
}